package com.baseinfo.service;

import com.model.TTrain;

import javax.persistence.*;
import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @date
 */
public interface TrainService {
    public TTrain saveOrupdate(TTrain modelParam);

    public TTrain save(TTrain modelParam);

    public List<TTrain> findAll(Map<String, Object> map);

    public TTrain findById(Long id);

    public void del(Long id);

    public Long getSearchSize(Map<String, Object> map);

    public List<TTrain> conditionsPage(Map<String, Object> map, Long start, Long length);

    public List<TTrain> searchPage(Long start, Long length);

    public Long getTotalSize();

}